package name.fowler.refactoring.simplestore;

public class RegularMoviePriceCalculator extends PriceCalculator {

	public RegularMoviePriceCalculator() {
		super(Category.Regular);
	}
	
	@Override
	public double calculatePrice(int daysRented) {
		
		double price = 2;
		
		if (daysRented > 2)
		{
			price += (daysRented - 2) * 1.5;
		}
		
		return price;
	}

	@Override
	public int calculateBonuses(int daysRented) {
		return 1;
	}

}
